package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import freemarker.template.TemplateException;

import java.io.IOException;

public interface ApArticleService extends IService<ApArticle> {


    ResponseResult load(ArticleHomeDto dto, Short defaultTag);


    /**
     * 保存app端文章
     * @param articleDto
     * @return
     */
    ResponseResult saveArticle(ArticleDto articleDto) throws Exception;

    /**
     * 创建文章静态页面
     * @param id
     * @return
     */
    ResponseResult createDetails(Long id) throws IOException, TemplateException, Exception;

}